(function() {
    var docEl:any = document.documentElement;
    function setRemUnit() {
      var rem:number = docEl.clientWidth / 10;
      docEl.style.fontSize = rem + "px";
    }
    setRemUnit();
    window.addEventListener("resize", setRemUnit);
  })();
  